import { service } from "@/axios/index";

export const getModelsList = (params) => {
  return service.get("/ShowRoom3d/models", { params: params }).then((response) => {
    return response.data;
  });
};

export const upModelsList = (params) => {
  return service.post("/ShowRoom3d/models", { params: params }).then((response) => {
    return response.data;
  });
};

export const getEventList = (params) => {
  return service.get("/ShowRoom3d/event", { params: params }).then((response) => {
    return response.data;
  });
};

export const upEventList = (params) => {
  return service.post("/ShowRoom3d/event", { params: params }).then((response) => {
    return response.data;
  });
};

export const sendActionModel = (params) => {
  return service.post("/operation/mesh", params).then((response) => {
    return response.data;
  });
};
